﻿using System.Web.Configuration;

namespace Core.Library
{    
    public class Const
    {
        public static readonly string SITE_URL = WebConfigurationManager.AppSettings["SiteURL"];
        public static readonly string STORAGE_DOMAIN = WebConfigurationManager.AppSettings["StorageDomain"];
        public static readonly string PREFIX_CACHE = WebConfigurationManager.AppSettings["PrefixCache"];
        public static readonly string DOMAIN_EXTENSION = WebConfigurationManager.AppSettings["DomainExtension"];
        public static readonly string REDIS_VOTEKEY = WebConfigurationManager.AppSettings["REDIS_VOTEKEY"];
        public const string NO_AVATAR = "/images/choose-images.png";
        public const string NO_AVATAR_ALBUM = "/images/choose-images2.png";
        public const int CloneLowLevel = 20;
        public const int CloneNormalLevel = 5;
        public const int CloneHighLevel = 1;
        public const int IPFloodVote = 30;
        public const string AuthenticationSessionName = "userDataString";


        /// <summary>
        /// meta
        /// </summary>
        public const string Meta_Title = "Cuộc thi tìm kiếm Stylist | Kenh14.vn";
        public const string Meta_Sapo = " Be Stylist là cuộc thi tìm kiếm Stylist, là nơi cho các thí sinh tự do thể hiện cá tính và phong cách thời trang của mình.";
        public static readonly string Meta_Image = SITE_URL + "images/bestylist.jpg";
        public class Action
        {
            public const string Save = "Save";
            public const string Send = "Send";
            public const string Publish = "Publish";
            public const string Return = "Return";
            public const string Remove = "Remove";
            public const string Delete = "Delete";
            public const string SaveAndContinue = "SaveAndContinue";
            public const string SaveWithoutStatus = "SaveWithoutStatus";
            public const string Round1 = "Round1";
            public const string Round2 = "Round2";
            public const string Round3 = "Round3";
            public const string Restore = "Restore";
        }
    }

    public enum PermissionObject
    {
        CanReturn               = 4,
        CanPublish              = 8,
        CanUnlock               = 32,                
        CanHighlightCategory    = 128,
        CanHighlightHomePage    = 256,
    }

    public enum MessageType
    {
        Warning     = 1,
        Information = 2,
        Success     = 3,
        Failure     = 4
    }

    public enum Status
    {
        IsDraft = 1,
        IsWaitingForPublish = 2,
        IsPublished = 3,
        IsRemoved = 0
    }

    public enum MemberStatus
    {
        IsNoRegister = -1,
        IsRemoved = 2,
        IsWaitingForPublish = 0,
        IsPublished = 1,
        IsDeleted = 3,
    }

    public enum MemberRound
    {
        NoRound = 0,
        Round1 = 1,
        Round2 = 2,
        Round3 = 3,
    }

    public enum NewsType
    {
        Normal = 0
    }

    public enum NotifyType
    {
        MemberRegister = 1,
        MemberUpdate = 2,
        MemberUpdatePhoto = 3
    }

    public enum CloneLevel
    {
        Low = 0,
        Normal = 1,
        High = 2
    }
}
